package com.ybServer.service;

import com.ybServer.model.User;
import org.springframework.web.multipart.MultipartFile;

public interface UserService {

    public User[] selectUserByName(String name);

    public boolean userExists(User user) throws Exception;

    void userRegister(User user) throws Exception;//

    User userLogin(User user) throws Exception;

    void updateUserPwd(User user) throws Exception;//

    void updateUserInfo(User user) throws Exception;//

    User getUserBasicInfoById(long userId) throws Exception;//

    byte[] getUserIconByUserId(String UserId) throws Exception;

    void addFeedback(String uname, String phone, String content) throws Exception;

    void updateUserIcon(MultipartFile icon) throws Exception;

}
